Skip to content

Conversation

@rebecca-pete
Copy link
Contributor

Add PITR Terraform code samples for Cloud SQL for SQL Server.

Description

Fixes #b/388607470

Note: If you are not associated with Google, open an issue for discussion before submitting a pull request.

Checklist

Readiness

  • Yes, merge this PR after it is approved
  • No, don't merge this PR after it is approved

Style

Testing

Intended location

  • Yes, this sample will be (or already is) included on cloud.google.com
    Location(s):

  • No, this sample won't be included on cloud.google.com
    Reason:

API enablement

  • If the sample needs an API enabled to pass testing, I have added the service to the Test setup file

Review

  • If this sample adds a new directory, I have added codeowners to the CODEOWNERS file

Add PITR Terraform code samples for Cloud SQL for SQL Server.
@rebecca-pete rebecca-pete requested a review from a team as a code owner February 11, 2025 19:38
@snippet-bot
Copy link

snippet-bot bot commented Feb 11, 2025

Here is the summary of changes.

You are about to add 2 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@glasnt glasnt changed the title Create main.tf feat(cloud_sql): Add Cloud SQL Server PITR Feb 11, 2025
@glasnt
Copy link
Contributor

glasnt commented Feb 11, 2025

/gcbrun

@glasnt
Copy link
Contributor

glasnt commented Feb 11, 2025

/gcbrun

Update edition for the Enterprise sample.
Updated editions for samples.
@glasnt
Copy link
Contributor

glasnt commented Feb 11, 2025

/gcbrun

region = "asia-northeast1"
database_version = "SQLSERVER_2019_ENTERPRISE"
settings {
tier = "db-custom-4-26624"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sample should be for Enterprise, not Enterprise Plus. With this in mind, I think we want to reverse the change on line 45.

@glasnt
Copy link
Contributor

glasnt commented Feb 11, 2025

/gcbrun

@glasnt
Copy link
Contributor

glasnt commented Feb 11, 2025

/gcbrun

@glasnt glasnt merged commit 01dfae4 into terraform-google-modules:main Feb 11, 2025
5 checks passed
niharika-98 pushed a commit to niharika-98/terraform-docs-samples that referenced this pull request Sep 7, 2025
)

* Create main.tf

Add PITR Terraform code samples for Cloud SQL for SQL Server.

* terraform fmt

* correct region tags

* ensure unique resource names

* Update main.tf

Update edition for the Enterprise sample.

* Update main.tf

Updated editions for samples.

* Update tier for enterprise plus

* revert tier change

* Add `root_password` argument

---------

Co-authored-by: Katie McLaughlin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants